/**
 * Created By zhangQ 2018/8/23
 */

import axiosUtils from '@api/env/axiosEnv'

let customAxios = axiosUtils._initAxios()

// 智享箱情 获取小循环报表内容
export function getMinorCycleData (param) {
  return customAxios({
    url: '/main/XlContainersReport/getMinorCycleData',
    method: 'post',
    data: param
  })
}

// 获取小循环报表场站详情
export function getMinorCycleStationDetail (param) {
  return customAxios({
    url: '/main/XlContainersReport/getMinorCycleStationDetail',
    method: 'post',
    data: param
  })
}

// 超时预警报表导出
export function exportExcelDataForm (params) {
  return customAxios({
    url: '/v2/main/TimeWarning/exportDataForm',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    responseType: 'blob',
    method: 'post',
    data: params
  })
}
